const fs = require("fs")
const content = "9999999"
fs.writeFile("./abc.txt", content, {
  flag: "a"
}, (err) => {
  console.log(err);
})

fs.readFile("./abc.txt", {
  encoding: "utf-8"
}, (err, data) => {
  console.log(data);
})